<?php
$uname = isset($_GET['uname']) ? ($_GET['uname']) : '';
$email = isset($_GET['email']) ? ($_GET['email']) : '';
$pass = isset($_GET['pass']) ? ($_GET['pass']) : '';
$dsn="mysql:host=127.0.0.1;dbname=tianshl_as";
$user="root";
$psw="root";
$pdo=new PDO($dsn,$user,$psw);
$res=$pdo->query("insert into zcb(uname,email,pass)value('$uname','$email','$pass')");
// $res=mysql_query($sql);
if ($res) {
    echo "注册成功";
    header('location:upload.html');
}

